﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8;" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/inform.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/Homepage/style.css"/>
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.0.min.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/Calendar3.js" ></script>
</head>
<script type="text/javascript">
	$(function(){
	
		$('#submitkey').click(function(){
			$('#search').submit();

		});
		
	})
</script>
<style>
.mi_rank{color:#858585;font-size:13px;text-align:left;margin-top:10px;}
</style>
<body><div class="main_wrap">
	<div class="home_menu" style="padding-bottom:40px;">
		<include file="Public:home_header" />
		<div style="clear:both"></div>
		<div class="zt" id="zt">
			<include file="Public/leftMenu" />
			
			<div class="yinfor">
				<div class="center_wrap">
					<div class="center_title"><h1>礼物管理</h1></div>		

					<div class="mi_caifu">
						<p class="lr_title">礼金流水</p>
						<table cellspacing=0 cellpadding=0 class="gift_search" style="height:35px;">
						<tr >
						<form method='get' id="search" name="search" action="{:U('index')}">

						<td width="100%">从<input name="start_date" type="text"  style="border:1px solid #ddd;"  id="start_date" size="10" value="{$startTime}" maxlength="10" onclick="new Calendar().show(this);"  readonly="readonly" /><font style="font-size:12px;">&nbsp至&nbsp</font>
								<input name="end_date" type="text"  style="border:1px solid #ddd;"  id="end_date" size="10" value="{$endTime}" maxlength="10" onclick="new Calendar().show(this);" readonly="readonly" />&nbsp&nbsp<input id="submitkey" type="button" value="查询" style="background-color:#73909E;border:none;color:#fff;"/></td>
						</tr>
						</form>
						</table>		
						<table cellspacing=0 cellpadding=0  class="gift_detail">
							<tr class="detailtr"><td  style="border-left:1px solid #C8C8C8;"><strong>操作时间</strong></td><td ><strong>送/收礼人</strong></td><td><strong>收入/支出</strong></td><td><strong>结余</strong></td><td><strong>说明</strong></td></tr>

							<empty name="data">
							<tr height='33'><td colspan=5>无记录</td></tr>
							</empty>
							<volist name='data' id='vo'>

							<tr height='33'>
								<td><?php echo date('Y-m-d H:i:s',strtotime($vo['dtime']));?></td>
								<td><?php order_show($vo['cbuddy'],$vo['nbuddyid'],'系统');?>
								<td>
								<?php 
								 if($vo['nmoney']>0){
									echo "<font style='color:#63b369'>+".$vo['nmoney']."</font>";
								 }else{
									echo "<font style='color:#ec9638'>".$vo['nmoney']."</font>";
								 }
								?>
								</td>
								<td>{$vo.nbalance}</td>
								<td>{$vo.cdesc}</td>

							</tr>

							</volist>

						</table>
						
						{$list}

					</div>	

				</div>


			</div>
		</div>
	</div>
</div>
</body>
</html>